<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    //  写一个去除制表符和换行符的方法
const removeSymbol = (str) => str.replace(/\t|\n|\r/g, "");

const str =
  "\t11122233\n_aaaaaaa\r\n_bbbbbb\t_3333333\r_4444444\n_555555";
  
console.log(removeSymbol(str));
function removeEmpty(str) {
  return str.replace(/[\t\v\n\r\f]/g, "");
}
console.log(removeEmpty(str));

  </script>
</body>
</html>